#ifndef ASTEROID_H
#define ASTEROID_H

#include <QPainter>
#include <QPixmap>

class Asteroid
{
public:
    Asteroid(qint32 width, qint32 height);
    ~Asteroid();

    void draw(QPainter *painter);
    void move();
    bool isOutOfField(qint32 width, qint32 height);

    qreal getX();
    qreal getY();
    qreal getRadius();

private:
    QPixmap m_pixmap;

    qreal m_x;
    qreal m_y;
    qreal m_speed;
    qreal m_angle;
    qreal m_angleSpeed;
    qreal m_dirX;
    qreal m_dirY;

};

#endif // ASTEROID_H
